<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="pageContentDiv">
	<div class="pageContentTitle">
		<span>Create New Contact</span>
	</div>
	<div class="pageContentWrapper clearfix">
		<form:form method="post" name="contact" action="addContact.html" commandName="contact" >

		<table width="100%">
		<colgroup>									
            <col width='20%'/>
            <col width='20%'/>										
			<col width='20%'/>
			<col width='20%'/>
            <col width='20%'/>										
        </colgroup>
        <tr height="15">
			<td><font color="red"><form:errors path="firstName" /></font></td>
		</tr>
		<tr height="15">
			<td><font color="red"><form:errors path="surName" /></font></td>
		</tr>
		<tr height="15">
			<td><font color="red"><form:errors path="contactType" /></font></td>
		</tr>
		
		<tr height="30">
			<td><form:label path="firstName"><spring:message code="label.firstName"/></form:label>&nbsp;(<font color="red">*</font>)</td>
			<td><form:input path="firstName" id="firstName" size="20"/></td>
			<td><form:label path="managerName"><spring:message code="label.managerName"/></form:label></td>
			<td><input id="managerName" type="text" size="20" readonly="readonly"></td> 
			<td><a href="ContactList">Lookup</a></td>
		</tr>
		<tr height="30">
			<td><form:label path="surName"><spring:message code="label.surName"/></form:label>&nbsp;(<font color="red">*</font>)</td>
			<td><form:input path="surName" id="surName" size="20"/></td>
			<td><form:label path="contactType"><spring:message code="label.contactType"/></form:label>&nbsp;(<font color="red">*</font>)</td>
			<td><form:select path="contactType" id="contactType">
					<form:option  value="">--Select--</form:option >
					<form:option  value="Operational" >Operational</form:option >
					<form:option  value="Fire Marshall" >Fire Marshall</form:option >
				</form:select></td>
		</tr>
		<tr height="30">
			<td><form:label path="knowAs"><spring:message code="label.knowAs"/></form:label></td>
			<td><form:input path="knowAs" size="20"/></td>
			<td><form:label path="bestContactMethod"><spring:message code="label.bestContactMethod"/></form:label></td>
			<td><form:select path="bestContactMethod">
					<form:option  value="">--Select--</form:option >
				</form:select></td>
		</tr>
		<tr height="30">
			<td><form:label path="officePhone"><spring:message code="label.officePhone"/></form:label></td>
			<td><form:input path="officePhone" size="20"/></td>
			<td><form:label path="jobRole"><spring:message code="label.jobRole"/></form:label></td>
			<td><form:input path="jobRole" size="20"/></td>
		</tr>
		<tr height="30">
			<td><form:label path="mobilePhone"><spring:message code="label.mobilePhone"/></form:label></td>
			<td><form:input path="mobilePhone" size="20"/></td>
			<td><form:label path="workBase"><spring:message code="label.workBase"/></form:label></td>
			<td><form:input path="workBase" size="20"/></td>
		</tr>
		<tr height="30">
			<td><form:label path="stHomePhone"><spring:message code="label.stHomePhone"/></form:label></td>
			<td><form:input path="stHomePhone" size="20"/></td>
			<td><form:label path="jobTitle"><spring:message code="label.jobTitle"/></form:label></td>
			<td><form:input path="jobTitle" size="20"/></td>
		</tr>
		<tr height="30">
			<td><form:label path="eMail"><spring:message code="label.eMail"/></form:label></td>
			<td><form:input path="eMail" id="eMail" size="20"/></td>
			<td><form:label path="isActive"><spring:message code="label.isActive"/></form:label></td>
			<td><form:input path="isActive" type="checkbox" value="yes"/></td>
		</tr>
	</table>
		<input type="submit"  value="<spring:message code="label.addcontact"/>"/>
		<input type="button"  value="<spring:message code="label.backpage"/>"  onClick="history.go(-1)"/>
	</form:form>
		
	</div>
</div>
